package com.hhxy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hhxy.model.entity.Tag;
import org.apache.ibatis.annotations.Param;

/**
* @author ghp
* @description 针对表【tb_tag(标签)】的数据库操作Mapper
* @createDate 2023-04-25 11:58:57
* @Entity generator.model.Tag
*/
public interface TagMapper extends BaseMapper<Tag> {

    /**
     * 根据标签标签名查早已被逻辑删除的记录
     * @param name
     * @return
     */
    Tag selectDeletedTagById(@Param("name") String name);

    /**
     * 修改已逻辑删除的记录
     * @param t
     * @return
     */
    boolean updateDeletedTagById(Tag t);
}




